import Vue from 'vue'
import axios from 'axios'
import router from './router'
import store from './store'
import './assets/css/reset.css'
import './assets/css/iconfont.css'
import './assets/css/'
import App from './App.vue'
import { TabContainer, TabContainerItem } from 'mint-ui'
import Tabbar from './components/tabbar'
import TabbarItem from './components/tabbar/item'

Vue.prototype.$axios = axios

Vue.prototype.$go = function(path, query={}) {
	this.$router.push({path, query})
}

Vue.prototype.$goByName = function(name, params = {}) {
  this.$router.push({name, params})
}

Vue.prototype.$back = function() {
	this.$router.go(-1)
}

Vue.component(TabContainer.name, TabContainer)
Vue.component(TabContainerItem.name, TabContainerItem)
Vue.component(Tabbar.name, Tabbar)
Vue.component(TabbarItem.name, TabbarItem)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
